// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'TransferOrderNo',
        footer: "Foots",
        cnName: '库存调拨',
        name: 'transferorder',
        url: "/transferorder/",
        sortName: "TransferOrderNo"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"Department":[],"CreateTime":"","TransferType":"","ApplyDate":"","OutWarehouseId":"","InWarehouseId":"","Handler":"","Remark":"","OrderStatus":"","OutStatus":"","InStatus":""};
    const editFormOptions = [[{"dataKey":"部门级联","data":[],"title":"制单部门","required":true,"field":"Department","type":"cascader"},
                               {"title":"制单时间","field":"CreateTime","type":"date"}],
                              [{"dataKey":"调拨类型","data":[],"title":"调拨类型","field":"TransferType","type":"select"}],
                              [{"title":"调拨申请日期","field":"ApplyDate","type":"date"}],
                              [{"dataKey":"WMS仓库管理","data":[],"title":"调出仓库","field":"OutWarehouseId","type":"select"}],
                              [{"dataKey":"WMS仓库管理","data":[],"title":"调入仓库","field":"InWarehouseId","type":"select"}],
                              [{"dataKey":"用户列表","data":[],"title":"经办人","field":"Handler","type":"select"}],
                              [{"title":"调拨备注","field":"Remark","type":"textarea"},
                               {"dataKey":"调拨单状态","data":[],"title":"调拨单状态","required":true,"field":"OrderStatus","type":"select"}],
                              [{"dataKey":"出库/入库","data":[],"title":"出库状态","required":true,"field":"OutStatus","type":"select"},
                               {"dataKey":"出库/入库","data":[],"title":"入库状态","required":true,"field":"InStatus","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'TransferOrderNo',title:'调拨单号',type:'string',link:true,sort:true,width:110,readonly:true,require:true,align:'left',sort:true},
                       {field:'Creator',title:'制单人',type:'string',width:100,align:'left'},
                       {field:'Department',title:'制单部门',type:'string',bind:{ key:'部门级联',data:[]},width:110,hidden:true,require:true,align:'left'},
                       {field:'CreateTime',title:'制单时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'TransferType',title:'调拨类型',type:'string',bind:{ key:'调拨类型',data:[]},width:110,align:'left'},
                       {field:'ApplyDate',title:'调拨申请日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'OutWarehouseId',title:'调出仓库',type:'bigint',bind:{ key:'WMS仓库管理',data:[]},width:110,align:'left'},
                       {field:'InWarehouseId',title:'调入仓库',type:'bigint',bind:{ key:'WMS仓库管理',data:[]},width:110,align:'left'},
                       {field:'Handler',title:'经办人',type:'string',bind:{ key:'用户列表',data:[]},width:110,align:'left'},
                       {field:'Remark',title:'调拨备注',type:'string',width:220,align:'left'},
                       {field:'OrderStatus',title:'调拨单状态',type:'string',bind:{ key:'调拨单状态',data:[]},width:110,hidden:true,require:true,align:'left'},
                       {field:'OutStatus',title:'出库状态',type:'string',bind:{ key:'出库/入库',data:[]},width:110,hidden:true,require:true,align:'left'},
                       {field:'InStatus',title:'入库状态',type:'string',bind:{ key:'出库/入库',data:[]},width:110,hidden:true,require:true,align:'left'},
                       {field:'OutProgress',title:'出库进度',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'InProgress',title:'入库进度',type:'string',width:110,hidden:true,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}